//package ink.tiptop.factory;
//
//import com.bwton.bas.user.biz.UserCityFactoryBizService;
//import com.bwton.bas.user.constant.FactoryConstant;
//import org.springframework.beans.factory.SmartInitializingSingleton;
//import org.springframework.stereotype.Component;
//
//import javax.annotation.Resource;
//
///**
// * ***********************************************************
// * Copyright  2019 八维通科技有限公司 Inc.All rights reserved.  *
// * ***********************************************************
// * <p>
// * description: 规范了工厂注入的对象类型, 举例
// * 工厂名称规范 (User)BizCityFactoryService (User省略了,在factory包下都省略),Biz=biz层 City=工厂业务相关(比如城市配置,城市活动等) FactoryService=工厂service
// *
// * @author zjf
// * @date 2020-09-29 15:56:21
// */
//@Component
//public class BizCityFactoryService extends AbstractFactory<FactoryConstant.CityFactoryEnum, UserCityFactoryBizService> implements SmartInitializingSingleton {
//
//    /**
//     * 城市活动
//     */
//    @Resource(name = "userBizCityActivityFactoryService")
//    private UserCityFactoryBizService userBizCityActivityFactoryService;
//    /**
//     * 城市信息
//     */
//    @Resource(name = "userBizCityMessageFactoryService")
//    private UserCityFactoryBizService userBizCityMessageFactoryService;
//
//    /**
//     * 这个方法会在所有的spring单例实例化成功之后执行
//     */
//    @Override
//    public void afterSingletonsInstantiated() {
//        this.register(FactoryConstant.CityFactoryEnum.ACTIVITY, userBizCityActivityFactoryService);
//        this.register(FactoryConstant.CityFactoryEnum.MESSAGE, userBizCityMessageFactoryService);
//    }
//}
